package com.chinairi.mall.service;

import com.chinairi.mall.model.GoodsFeature;
import com.chinairi.mall.model.Measurement;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Webgasd
 * @since 2020-09-12
 */
public interface IMeasurementService extends IService<Measurement> {
    /**
     * 计量单位配置
     * @param measurement
     */
    void config(Measurement measurement);
    /**
     * 获取所有计量单位
     * @return
     */
    List<Measurement> getTypeList();

    /**
     * 获取所有计量单位
     * @param type
     * @return
     */
    List<Measurement> getUnitList(String type);
}
